<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'busca-form',
	'enableAjaxValidation'=>false,
)); ?>
	
	<div class="row">
		<?php $this->widget('zii.widgets.grid.CGridView', array(
			'id'=>'download-grid',
			'dataProvider'=>$model->buscarArquivos(),
			'columns'=>array(
				'nome',
				'categoria',
				'tamanho',
				array(
		   			'class'=>'CLinkColumn',
		   			'header'=>'Download',
					'label'=>'Download',
		   			'urlExpression'=>'Yii::app()->controller->createUrl("site/downloadFile/$data->id_arquivo")',
		   			'headerHtmlOptions' => array('width'=>'80px',),
				),
				array(
					'class'=>'CButtonColumn',
					'header'=>'Opções',
					'buttons'=>array(
						'update'=>array('visible'=>'',),
						'view'=>array('visible'=>'',),
					),
				),
			),
		)); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->